<%--
  Created by IntelliJ IDEA.
  User: lx
  Date: 2019/05/27
  Time: 20:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加辞退员工</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/layui/css/layui.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/personal.css" media="all">
</head>

<body>
<H2 align="center">添加离退休员工</H2>
<br>
<input type="text" hidden value="${check}" id="check"/>
<script>
    var a = document.getElementById("check");
    if (a.value == "error") alert("添加重复");
</script>
<div class="larry-personal" align="center">
    <div class="layui-inline">
        <form class="layui-form" action="/lituixiu/add">
            <table border="0px" width="1200px">
                <tr>
                    <td>
                        <label class="layui-form-label">员工编号</label>
                        <div class="layui-input-inline">
                            <input name="empid" required lay-verify="required" placeholder="AXXX"
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">姓名</label>
                        <div class="layui-input-inline">
                            <input name="empname" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">部门</label>
                        <div class="layui-input-inline">
                            <select name="departId" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <c:forEach items="${depts}" var="da">
                                    <option value="${da.id}">${da.dname}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-inline">
                            <input disabled name="nation" value="离退" class="layui-input search_input" type="text">
                            <input name="isStatus" value="8" placeholder="" class="layui-input search_input" type="text"
                                   hidden>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">英文名</label>
                        <div class="layui-input-inline">
                            <input name="englishname" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">曾用名</label>
                        <div class="layui-input-inline">
                            <input name="nameusedbefore" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">性别</label>
                        <input type="radio" name="sex" value="男" title="男">
                        <div class="layui-unselect layui-form-radio layui-form-radioed"><i
                                class="layui-anim layui-icon"></i><span>男</span></div>
                        <input type="radio" name="sex" value="女" title="女">
                        <div class="layui-unselect layui-form-radio"><i
                                class="layui-anim layui-icon"></i><span>女</span></div>

                    </td>
                    <td>
                        <label class="layui-form-label">身份证号</label>
                        <div class="layui-input-inline">
                            <input name="idcard" required lay-verify="required" class="layui-input search_input"
                                   type="text">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">出生日期</label>
                        <div class="layui-inline">
                            <input type="date" required lay-verify="required" class="layui-input" name="birthday">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">籍贯</label>
                        <div class="layui-input-inline">
                            <input name="natives" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">民族</label>
                        <div class="layui-input-inline">
                            <input name="nation" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">政治面貌</label>
                        <div class="layui-input-inline">
                            <input name="poleticalstatus" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">宗教信仰</label>
                        <div class="layui-input-inline">
                            <input name="religiousbelief" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">健康状况</label>
                        <div class="layui-input-inline">
                            <input name="healthcondition" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">移动电话</label>
                        <div class="layui-input-inline">
                            <input name="mobilephone" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">婚姻状况</label>
                        <input type="radio" name="maritalstatus" value="已婚" title="已婚">
                        <div class="layui-unselect layui-form-radio layui-form-radioed"><i
                                class="layui-anim layui-icon"></i><span>已婚</span></div>
                        <input type="radio" name="maritalstatus" value="未婚" title="未婚">
                        <div class="layui-unselect layui-form-radio"><i
                                class="layui-anim layui-icon"></i><span>未婚</span></div>

                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">工资账号</label>
                        <div class="layui-input-inline">
                            <input name="wagesaccount" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">社保账号</label>
                        <div class="layui-input-inline">
                            <input name="socialsecuritynumbers" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">参加工作时间</label>
                        <div class="layui-input-inline">
                            <input name="partworktime" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="date">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">进入单位时间</label>
                        <div class="layui-input-inline">
                            <input name="entertime" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="date">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">户口所在地</label>
                        <div class="layui-input-inline">
                            <input name="place" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">学历</label>
                        <div class="layui-input-inline">
                            <select name="education" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <option value="小学">小学</option>
                                <option value="初中">初中</option>
                                <option value="高中">高中</option>
                                <option value="大学">大学</option>
                                <option value="高等">高等</option>
                            </select>
                            <div class="layui-unselect layui-form-select">
                                <div class="layui-select-title"><input placeholder="" value="" readonly=""
                                                                       class="layui-input layui-unselect" type="text"><i
                                        class="layui-edge"></i></div>
                                <dl class="layui-anim layui-anim-upbit">
                                    <dd lay-value="0" class="layui-this">开放浏览</dd>
                                    <dd lay-value="1" class="">会员浏览</dd>
                                </dl>
                            </div>
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">职称</label>
                        <div class="layui-input-inline">
                            <select name="jobId" class="newsLook" lay-filter="browseLook">
                                <option value="">--请选择--</option>
                                <c:forEach items="${jobAll}" var="ja">
                                    <option value="${ja.id}">${ja.name}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </td>
                    <td>
                        <label class="layui-form-label">办公电话</label>
                        <div class="layui-input-inline">
                            <input name="officephone" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="layui-form-label">住宅电话</label>
                        <div class="layui-input-inline">
                            <input name="homephone" required lay-verify="required" placeholder=""
                                   class="layui-input search_input" type="text">
                        </div>
                    </td>
                </tr>
                <tr align="center">
                    <td colspan="4">
                        <div class="layui-inline">
                            <input type="submit" class="layui-btn layui-btn-mini news_edit" value="确认添加"/>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
        <br>
        <button onclick="revers()" class="layui-btn layui-btn-mini"><i class="iconfont icon-beifen"></i>取消</button>
        <button onclick="rever()" class="layui-btn layui-btn-mini"><i class="iconfont icon-beifen"></i>刷新</button>
        <script type="text/javascript" src="${pageContext.request.contextPath}/common/layui/layui.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/newsadd.js"></script>
        <script>
            function revers() {
                window.location.href = "/lituixiu/list";
            }

            function rever() {
                window.location.href = "/lituixiu/addemp";
            }
        </script>
    </div>
</div>
</body>
</html>
